<template>
  <div class="">
    <div class="w-100 ib">Children</div>
    <el-select @change="getChildren" v-model="value" placeholder="Children data">
      <el-option
        v-for="item in childrenOptions"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </div>
</template>
 
<script>
export default {
  name: '',
  data () {
    return {
      msg:''
    }
  },
  computed: {
    childrenOptions() {
      return this.$store.state.cellData.options
    },
    value: {
      get() {
        return this.$store.state.cellData.value
      },
      set(v) {
        this.$store.state.cellData.value = v
      }
    }
  },
  methods: {
    getChildren(v) {
      this.$store.dispatch('cellData/changeOption', v)
    }
  }
}
</script>
 
<style scoped lang="scss">
 
</style>